package com.cn.stusy0015.demo0011;

import java.util.Scanner;

/**
 * @author lw
 * @ClassName TestCount.java
 * @Description
 * @createTime 2023年05月20日 14:28:00
 */
public class TestCount {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        StrCount s = new StrCount();
        System.out.print("请输入一个字符串：");
        String str = sc.next();
        System.out.print("请输入你要查找的字符串：");
        String str1 = sc.next();
        System.out.println("\""+ str + "\""+"中包含"+s.counters(str, str1)+"个"+str1);
    }
}
